<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
	<meta charset="UTF-8">
	<title>百朋后台管理系统</title>
	<link rel="stylesheet" type="text/css" href="/Public/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="/Public/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="/Public/easyui/demo.css">
	<script type="text/javascript" src="/Public/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="/Public/easyui/jquery.easyui.min.js"></script>
</head>
<style type="text/css">
	.input 
	{
		border: 1px solid #eaeaea;
		background-color: #6d654e;
		color: #fff;
		text-align: center;
		padding: 0px 10px -1px;
		border-radius: 4px;
	}
</style>
<body>
	<div class="invest_table">
		<table id="default_table" title="材料审核列表" style="width:100%;min-height:372px;"
			data-options="
				remoteSort:false,
				rownumbers:true,
				singleSelect:true,
				autoRowHeight:false,
				pagination:true,
				pageSize:10,toolbar:'#tb'
			"
		>
			<thead>
				<tr>
					<th field="cust_name" width="10%" align="center">用户姓名</th>
					<th field="refertype_name" width="20%" align="center">类型</th>
					<th field="ref_point" width="10%" align="center">审核分数</th>
					<th field="status_name" width="10%" align="center">审核状态</th>
					<th field="ref_createdate" width="20%" align="center">创建时间</th>
					<th field="ref_conftime" width="20%" align="center">审核时间</th>
					<!--<th field="action" width="9%" align="center" formatter="formatAction">操作</th>-->
				</tr>
			</thead>
		</table>
	</div>
	<div id="tb" style="padding:5px;height:auto">
        <div style="margin-bottom:5px" id="tb_button">
            <!--<a href="#" class="easyui-linkbutton" onclick="materialcheck_detail();" iconCls="icon-large-smartart" plain="true">审核</a>-->
        </div>
		<form action="../../materialCheck/materialcheck/materialcheck_list" method="get" id="searchTable">
			<div>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				客户姓名
				<input class="easyui-textbox" id="select_custName" name="select_custName" value="<?php echo ($search_array["select_custName"]); ?>" style="width:100px">&nbsp;&nbsp;
				材料类型
				<select class="easyui-combobox selector" id="select_refertype" name="select_refertype" panelHeight="auto" style="width:100px" data-options="editable:false">
					<option value="">请选择</option>
					<?php
 foreach ($array_cust_refertype as $key => $value) { echo '<option value="'.$value['refertype_id'].'">'.$value['refertype_name'].'</option>'; } ?>
				</select>&nbsp;&nbsp;
				<script type="text/javascript">$("#select_refertype").find("option[value='<?php echo ($search_array["select_refertype"]); ?>']").attr("selected",true);</script>
				审核状态
				<select class="easyui-combobox selector" id="select_custStatus" name="select_custStatus" panelHeight="auto" style="width:100px" data-options="editable:false">
					<option value="">请选择</option>
					<?php
 foreach ($array_cust_status as $key => $value) { echo '<option value="'.$value['status_id'].'">'.$value['status_name'].'</option>'; } ?>
				</select>&nbsp;&nbsp;
				<script type="text/javascript">$("#select_custStatus").find("option[value='<?php echo ($search_array["select_custStatus"]); ?>']").attr("selected",true);</script>
				<a href="javascript:;" onclick="submitSearch();" class="easyui-linkbutton" iconCls="icon-search">查询</a>&nbsp;&nbsp;
				<a href="javascript:;" onclick="resetSearch();" class="easyui-linkbutton" iconCls="icon-clear">重置</a>&nbsp;&nbsp;
				<!-- <a href="javascript:;" onclick="materialcheck_add();" class="easyui-linkbutton" iconCls="icon-add">新增</a> -->
			</div>
		</form>
	</div>

	<script type="text/javascript" src="/Public/js/common.js"></script>
    <script type="text/javascript" src="/Public/js/button.js"></script>
    <script type="text/javascript" src="/Public/js/material_check/materialcheck_list.js"></script>
	<script type="text/javascript">
		$(function() 
		{
			var json = '<?php echo ($json_list); ?>';
			var array = JSON.parse(json);
			$('#default_table').datagrid({loadFilter:pagerFilter}).datagrid('loadData', array);
		});
	</script>
</body>
</html>